package com.jacobson.huobi.mvp.contract

import com.alibaba.fastjson.JSONObject
import com.jacobson.core.mvp.IModel
import com.jacobson.core.mvp.IPresenter
import com.jacobson.core.mvp.IView
import com.jacobson.huobi.entities.response.CommonResponse
import io.reactivex.Observable
import okhttp3.MultipartBody

interface EditSoftwareContract {
    interface Model : IModel {
        fun logout(
        ): Observable<CommonResponse<JSONObject>>

        fun logcatUpload(file: MultipartBody.Part, model: String, version: String): Observable<CommonResponse<String>>
    }
    interface View : IView {
        fun onLogoutResultResp(response: CommonResponse<JSONObject>)

        fun onLogcatUploadResultResp(response: CommonResponse<String>)
    }
    interface Presenter : IPresenter {
        fun logout()

        fun logcatUpload(file: MultipartBody.Part, model: String, version: String)
    }
}